home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-20 / ccdsrc.zip / README < prev    next >
Text File  |  1991-09-03  |  3KB  |  120 lines

  1. UoSAT-5 to GIF tools
  2. Version 1
  3.  
  4. Disclaimer
  5.  
  6. There was no attempt to make these routines easily portable to anything.
  7. They are for MS-DOS and Microsoft C.
  8.  
  9. There was no attempt to make these routines easily adaptable to other
  10. raw CCD formats.
  11.  
  12. This stuff works on my system with the current image format, I'm sending
  13. it out as is to help others get started.  It isn't pretty, but there are
  14. only so many hours in the day.
  15.  
  16. That said, here's what.
  17.  
  18. These programs take a raw CCDnn file as output from PHS.  The format of
  19. this file is described in inter.c, which originally came from UoSAT.  This
  20. is a little wrong, there are four undocumented bytes at the front of the
  21. file, which will be more sometime in the future.  The output of the
  22. programs is a flat "raster" file suitable to use as input to RG8, which
  23. will convert the file to .GIF.
  24.  
  25. The programs:
  26.  
  27.  
  28. pacout - removes duplicate bytes caused by a problem with the CCD to
  29.          file system program on the spacecraft.
  30.  
  31. inter  - merges the two fields into a single frame.
  32.  
  33. spec   - attempts to remove the "speckles" from the image, and reduce the
  34.          horizontal white bar.
  35.  
  36. clip   - remove black bar from the left of the image.
  37.  
  38.  
  39.  
  40. The files:
  41.  
  42. CLIP.C         Clip source and program
  43. CLIP.EXE
  44.  
  45. CONVERT.BAT    BAT file to do everything.  Say "convert ccdnn", e.g.
  46.                phs 1b5.dl /x
  47.                convert ccd27
  48.  
  49.  
  50. INTER.C        Interleave program
  51. INTER.EXE
  52.  
  53. PACOUT.C       pacout program
  54. PACOUT.EXE
  55.  
  56. SPEC.C         speckle program
  57. SPEC.EXE
  58.  
  59. STDPAL.PAL     null palette file
  60.  
  61. README         This file.
  62.  
  63.  
  64.  
  65. Convert explained
  66.  
  67. pacout %1 %1a
  68.        Remove duplicates in raw file
  69.  
  70. inter %1a %1b
  71.        Take the two halves of the file in 611 byte lines and 
  72.        interleave, making 612 byte lines.
  73.  
  74. del %1a
  75. spec %1b %1c
  76.        Remove speckles by looking for bytes that are more than 20
  77.        different that adjacent bytes.  Too simple, but works well
  78.        for most images.
  79.  
  80. del %1b
  81. clip %1c %1d 0 44
  82.        Remove leftmost 44 bytes on each line, making 568 byte lines.
  83.  
  84. del %1c
  85. rg8 %1d. /c568 /r578 /ps
  86.        Convert raster to .GIF using 578 lines of 568 bytes.  Use /r480
  87.        to get a file that fits in 640x480.
  88.  
  89.  
  90.  
  91. rg8 is shareware which was on UO-14 a while ago, described thus:
  92.  
  93. RG8.ARC/binary            01-Sep-88 14791             Accesses: 4
  94.   
  95.     Keywords: GIF SATELLITE CONVERSION COLOR GREY FLEXIBLE FAST
  96.     
  97.     Convert  RIX  (640x480)  raw  satellite  data files to GIF in
  98.     Color  or  64  shades  of  grey.  Has  options for interlace,
  99.     320x200  GIF,  different  raw data sizes, and palette loading
  100.     for  color  GIFs.  Will do everything RG and VG did and a lot
  101.     more.   Allows   experimenting  with  color  images.  By  Bob
  102.     Montgomery.
  103.  
  104. I'll put it on UO-14 again when I get a chance.  
  105.  
  106. hp
  107.  
  108. ps, RG8 is available on CIS:
  109. Graphics Support Forum (GO PICS)
  110. LIB  3:  Decoders & Encoders
  111. One-line Descriptions of all files as of Friday June 28, 1991
  112.  
  113. Name/Type    Size   Date    Description
  114. ----------   ---- --------- ----------------------------------------------
  115. RG8.ARC    B  14K 01-Sep-88 RIX satellite data file to GIF utility
  116.  
  117.  
  118.  
  119.  
  120.